package org.becomingMd;

public class FileInfo {
    private String absolutePath;
    private String fileName;
    private int fileSize;
    private String fileType;
    private boolean isExisted;
    private boolean isSynced;

    // 构造函数
    public FileInfo(String absolutePath, String fileName, int fileSize, String fileType, boolean isExisted, boolean isSynced) {
        this.absolutePath = absolutePath;
        this.fileName = fileName;
        this.fileSize = fileSize;
        this.fileType = fileType;
        this.isExisted = isExisted;
        this.isSynced = isSynced;
    }

    // 默认构造函数
    public FileInfo() {
    }

    // Getter 和 Setter 方法
    public String getAbsolutePath() {
        return absolutePath;
    }

    public void setAbsolutePath(String absolutePath) {
        this.absolutePath = absolutePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getFileSize() {
        return fileSize;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public boolean isExisted() {
        return isExisted;
    }

    public void setExisted(boolean existed) {
        isExisted = existed;
    }

    public boolean isSynced() {
        return isSynced;
    }

    public void setSynced(boolean synced) {
        isSynced = synced;
    }

    @Override
    public String toString() {
        return "FileInfo{" +
                "absolutePath='" + absolutePath + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                ", fileType='" + fileType + '\'' +
                ", isExisted=" + isExisted +
                ", isSynced=" + isSynced +
                '}';
    }
}